package com.zhang.dft_project.vo.req;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 用户登录对象
 */
@Data
public class UserReq {
    @NotNull(message = "登录名不能为空")
    @Size(min = 4, message = "登录名不能少于四个字符")
    private String username;

    @NotNull(message = "密码不能为空")
    @Size(min = 6, max = 8, message = "密码长度在6-8之间")
    private String password;
}
